package com.fingard.dsp.bank.reqrespobj.elecbilltrans.detail;

import com.fingard.xml.XElement;

public class ReqB003BillRespSubmitDetail {
    //    应答类型 1-承兑应答 2-收票应答 3-背书转让应答 4-回购式贴现赎回应答 5-质押解除应答 6-提示付款应答 7-保证应答 8-同意清偿应,9-质押签收
    public String respType;
    //    银行账号
    public String actNum;
    //    电子票据序列号
    public String billNo;

    public String billCur;
    //    支付请求码
    public String reqSeqID;
    //    业务流水号
    public String busiNo;
    //    应答标记 1--签收 2--驳回
    public String respFlag;
    public String mustPay;
    //    备注
    public String memo;
    //    保证人地址
    public String guarAddr;
    //    拒付理由代码 1--DC00 2--DC01 N--DC0(N-1) 99--DC09
    public String unPayCode;
    //    拒付备注 拒付理由代码为99时非空
    public String unPayMemo;
    //  协议号 承兑、贴现签收时有效
    public String protocolNo;
    //  票据类型
    public String billType;
    //    回复人开户行行号
    public String respBnkCode;
    public String actArea;
    //    回复人名称
    public String respName;
    //    票据金额
    public String billAmt;

    public String oldPlatDate;
    public String oldSeq;

    //出票人名称
    public String billOpenName;
    //出票人账号
    public String billOpenAcc;
    public String accpCredit;
    public String accpGrade;
    public String accpGradeDue;
    //    提示付款类型 1-正常 2-逾期
    public String proPayType;

    // 申请人组织机构代码
    public String applyCode;
    public XElement srcElement;

    public ReqB003BillRespSubmitDetail(XElement p_element) throws Exception {
        srcElement = p_element;
        respType = srcElement.getSingleText("RespType");
        actNum = srcElement.getSingleText("ActNum");
        billNo = srcElement.getSingleText("BillNo");
        billCur = srcElement.getSingleText("BillCur");
        proPayType = srcElement.getSingleText("ProPayType");
        reqSeqID = srcElement.getSingleText("ReqSeqID");
        busiNo = srcElement.getSingleText("BusiNo");

        respFlag = srcElement.getSingleText("RespFlag");
        mustPay = srcElement.getSingleText("MustPay");
        memo = srcElement.getSingleText("Memo");
        guarAddr = srcElement.getSingleText("GuarAddr");
        unPayCode = srcElement.getSingleText("UnPayCode");
        unPayMemo = srcElement.getSingleText("UnPayMemo");

        protocolNo = srcElement.getSingleText("ProtocolNo");
        billType = srcElement.getSingleText("BillType");
        respBnkCode = srcElement.getSingleText("RespBnkCode");
        actArea =srcElement.getSingleText("ActArea");
        respName = srcElement.getSingleText("RespName");
        billAmt = srcElement.getSingleText("BillAmt");

        oldPlatDate = srcElement.getSingleText("OldPlatDate");
        oldSeq = srcElement.getSingleText("OldSeq");

        billOpenName = srcElement.getSingleText("BillOpenName");
        billOpenAcc = srcElement.getSingleText("BillOpenAcc");
        accpCredit = srcElement.getSingleText("AccpCredit");
        accpGrade = srcElement.getSingleText("AccpGrade");
        accpGradeDue = srcElement.getSingleText("AccpGradeDue");
        applyCode = srcElement.getSingleText("ApplyCode");
    }
}
